<%-- 
    Document   : alterarTecnico
    Created on : 07/04/2013, 10:36:51
    Author     : jhonatan
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Alteração de Tecnico</title>
    </head>
    <body>
        <h1>Alterar Tecnico</h1>
        <jsp:useBean id="bnTecnico" scope="session" class="br.edu.fatecmm.cadastrotimes.beans.BnTecnico" />
        <form name="form1" action="/cadastroTecnico/SltTecnico" method="post">
            <table border="0">
                <tbody>
                    <tr>
                        <td>Nome:</td>
                        <td width="2">&nbsp;</td>
                        <td><input type="text" name="nm_tecnico" value="${bnTecnico.nm_tecnico}" size="100" /></td>
                    </tr>
                    
                 
                    <tr>
                        <td>Time:</td>
                        <td></td>
                        <td><select name="cd_time">
                                <c:forEach var="lista" items="${requestScope.itens}">
                                    <option value="${lista.id_times}"
                                            
                                            <c:if test="${lista.id_times == bnTecnico.cd_time}"> selected</c:if>
                                            
                                            >${lista.ds_times}</option>
                                </c:forEach>
                            </select></td>    
                    </tr>
                    <tr>
                        <td colspan="3"><input type="button" value="Cancelar" name="btnCancelar" onClick="window.location='/CadastroTimes/SltTecnico?operacao=listar'" />
                                        <input type="submit" value="Gravar" />
                                        <input type="hidden" name="id" value="${bnFilmes.id}" />
                                        <input type="hidden" name="operacao" value="gravaralteracao" /></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
